<template>
	<view class="statistics-container page-container">
		<view class="status_bar" />
		<text class="statistics-title">统计页面</text>
		<view class="statistics-content">
			<u-empty mode="permission" icon="https://cdn.uviewui.com/uview/empty/permission.png" text="暂无统计数据"></u-empty>
		</view>
	</view>
</template>

<script>
import { themeManager } from '@/utils/theme';

export default {
	data() {
		return {
			
		}
	},
	onLoad() {
		// 监听主题变化
		uni.$on('themeChange', this.handleThemeChange);
	},
	onUnload() {
		// 移除监听
		uni.$off('themeChange', this.handleThemeChange);
	},
	methods: {
		handleThemeChange(data) {
			// 主题变化时更新页面样式
			console.log('统计页面接收到主题变化:', data.theme);
		}
	}
}
</script>

<style lang="scss" scoped>
.statistics-container {
	padding: 20px;
	min-height: 100vh;
	background-color: var(--background-color);
}

.statistics-title {
	font-size: 36rpx;
	font-weight: bold;
	color: var(--text-color);
	margin-bottom: 30rpx;
}

.statistics-content {
	margin-top: 100rpx;
}
</style> 